<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

$this->title = 'Views';
?>
<div class="blog-view">
    <?= DetailView::widget([
        'model' => $model,
        'template' => '<tr><th>{label}</th><td style="width: 90%">{value}</td></tr>',
        'attributes' => [
            'id',
            'username',
            'phone',
            [
                'attribute' => 'content',
                'format' => 'raw',
                 'value' => function ($model) {
                    return  '<div style="width: 600px;">'.\yii\helpers\Markdown::process($model->content).'</div>';
                }
            ],
            'ctime'
        ],
    ]) ?>

</div>
